﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Empires.CRL.DataContract;
using Empires.BLL.Core.IService;
using Empires.BLL.Core.Implement;

namespace Empires.PL.ServiceClient
{
    public static class CompanyOnlineServiceClient
    {
        public static List<DefaultDataPack> GetOnlineConsultation(string copname, int page, int size)
        {
            ICompanyOnlineService service = new CompanyOnlineService();
            return service.GetOnlineConsultation(copname, page, size);
        }

        public static List<DefaultDataPack> GetOnlineConsultationForIndex(string copname, int size)
        {
            ICompanyOnlineService service = new CompanyOnlineService();
            return service.GetOnlineConsultationForIndex(copname, size);
        }

        public static int PostOnlineConsultation(string copname, string Author, string Content)
        {
            ICompanyOnlineService service = new CompanyOnlineService();
            return service.PostOnlineConsultation(copname, Author, Content);
        }

        public static int PostOnlineReply(string copname, int mid, string author, string content, string phone)
        {
            ICompanyOnlineService service = new CompanyOnlineService();
            return service.PostOnlineReply(copname, mid, author, content, phone);
        }

        public static int DeleteOnlineItem(string copname, int mid)
        {
            ICompanyOnlineService service = new CompanyOnlineService();
            return service.DeleteOnlineItem(copname, mid);
        }

        public static List<DefaultDataPack> GetOnlineConsultationItem(string id, int mid)
        {
            ICompanyOnlineService service = new CompanyOnlineService();
            return service.GetOnlineConsultationItem(id, mid);
        }

        public static bool EditOnlineConsultaion(string copname, OnlineDataPack onlineDataPack)
        {
            ICompanyOnlineService service = new CompanyOnlineService();
            return service.EditOnlineConsultaion(copname, onlineDataPack);
        }
    }
}
